package com.zyh.fengzhuanghejichengzuoye.test5.domain;

public class Player extends Person{
    private String project;
    private String score;

    public Player() {
    }

    public Player(String name, int age, String sex, String project, String score) {
        super(name, age, sex);
        this.project = project;
        this.score = score;
    }

    public void show(){
        System.out.println("大家好！我是"+getName());
        System.out.println("今年"+getAge());
        System.out.println("我擅长的运动项目是："+getProject());
        System.out.println("历史最好成绩是："+getScore());
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }
}
